package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class DropColumnScopeClause implements AlterColumnAction {

    private int beginIndex;
    private int endIndex;
    private final DropBehavior dropBehavior;

    public DropColumnScopeClause(int beginIndex, DropBehavior dropBehavior) {
        this.beginIndex = beginIndex;
        this.endIndex = dropBehavior.getEndIndex();
        this.dropBehavior = dropBehavior;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public DropBehavior getDropBehavior() {
        return dropBehavior;
    }

}
